package com.ziroom.zrapl.services.demo.client;

import com.ziroom.zrapl.services.demo.api.inner.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by cuiyuhui on 2017/4/19.
 */
public class ClientMain {

    public static void main(String[] args) {
        System.out.printf("1111");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"META-INF/spring/contract-consumer.xml"});
        System.out.printf("2222");
        context.start();
        System.out.printf("3333");
        DemoService service = (DemoService)context.getBean("demoService");
        System.out.printf(service.sayHello("Hello WORD"));
        System.out.printf("4444");
        context.close();
    }

}
